//3 ways to access static member data
#include <iostream>
using namespace std;

class X {
public:
const static int i = 0;
};

int main()
{
  X x,*xptr = &x;
  cout<<"X::i"<<"\t"<<X::i<<endl;
  cout<<"x.i"<<"\t"<<x.i<<endl;
  cout<<"xptr->i"<<"\t"<<xptr->i<<endl;
  return 0;
}
